package com.kitty.spring.annotationdriven.configuration;

import com.kitty.spring.annotationdriven.beans.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @Description
 * @Author SHEN
 * @Date 2020/12/7
 */

@Configuration
@PropertySource("classpath:person.properties")
public class BeanConfigofPropertyValues {

    @Bean
    public Person person(){
        return new Person();
    }
}
